﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SMP_QuanLySV.Presentation
{
    static class UIManager
    {
        static frmLogin login;
        static frmMain main;

        static public string currentUserName;
        static public string currentUserPass;
        //int currentUserAuthority;

        static public void Init()
        {
            currentUserName = "";
            currentUserPass = "";

            login = new frmLogin();
            main = new frmMain();

        }

        static public void switchToMainForm()
        {
            login.Hide();
            main.Show();
        }

        static public void switchToLoginForm()
        {
            login.Show();
            main.Hide();
        }
    }
}
